/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ids.dl;

import java.net.InetAddress;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.List;
/**
 *
 * @author isuru
 */
public interface IServer extends Remote{

    String isActive() throws RemoteException;

    ArrayList<String> doSearch(String keyWord, ArrayList<String> filePaths, String clientId) throws RemoteException;

    void stopSearch(String clientId) throws RemoteException;

    double voteForCoordinator() throws RemoteException;
    
    double voteForExtraWork() throws RemoteException;
    
    public InetAddress getIp() throws RemoteException;

}
